From: Florian Müllner Date: Fri, 18 Feb 2011 22:59:49 +0000 (+0100) Subject: dash: Adjust CSS in RTL locales X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8955 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=526130423147c9349986a82c4b60917d9c67f231;p=gnome-shell.git dash: Adjust CSS in RTL locales As the dash uses different widths and radii for left and right borders, we need to use different CSS when it is positioned at the right of the screen. https://bugzilla.gnome.org/show_bug.cgi?id=642721 --- diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css index 2da9cc2f8..824bda3b7 100644 --- a/data/theme/gnome-shell.css +++ b/data/theme/gnome-shell.css @@ -315,6 +315,12 @@ StTooltip StLabel { border-radius: 0px 9px 9px 0px; } +#dash:rtl { + border-left: 1px; + border-right: 0px; + border-radius: 9px 0px 0px 9px; +} + #dash:empty { height: 100px; width: 60px; diff --git a/js/ui/dash.js b/js/ui/dash.js index 6a39edc48..e0a48e59e 100644 --- a/js/ui/dash.js +++ b/js/ui/dash.js @@ -262,6 +262,11 @@ Dash.prototype = { clip_to_allocation: true }); this._box._delegate = this; + // This will eventually be automatic, see + // https://bugzilla.gnome.org/show_bug.cgi?id=584662 + if (St.Widget.get_default_direction () == St.TextDirection.RTL) + this._box.add_style_pseudo_class('rtl'); + this.actor = new St.Bin({ y_align: St.Align.START, child: this._box }); this.actor.connect('notify::height', Lang.bind(this, function() {